package cn.edu.scau.cmi.linpeiwei.abstractFactory.factory;

import cn.edu.scau.cmi.linpeiwei.abstractFactory.domainAbstractClass.BodyInjur;
import cn.edu.scau.cmi.linpeiwei.abstractFactory.domainAbstractClass.Collision;
import cn.edu.scau.cmi.linpeiwei.abstractFactory.domainAbstractClass.Com;
import cn.edu.scau.cmi.linpeiwei.abstractFactory.domainAbstractClass.PersonInjur;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "PICC":
			return new PiccFactory();

		case "PingAn":
			return new PingAnFactory();
		
		}
		return null;
	}
	
	public abstract BodyInjur createBodyInjur();
	public abstract Collision createColission();
	public abstract PersonInjur createPersonInjur();
	public abstract Com createCom();
}
